gdk: Temporarily add -xobjective-c to CFLAGS
authorJohn Ralls <jralls@ceridwen.us>
Mon, 22 Apr 2013 22:38:46 +0000 (15:38 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Mon, 22 Apr 2013 22:48:34 +0000 (15:48 -0700)
To enable compiling the quartz backend after a6a4428

gdk/Makefile.am
gdk/gdkdisplaymanager.c

index a32c6b508ee65ee912462739c85f7ec57815fe7e..0b81376af1ef1bd837e881725dc51c0a242eb661 100644 (file)
@@ -174,6 +174,7 @@ libgdk_3_la_LIBADD += x11/libgdk-x11.la
 endif # USE_X11
 
 if USE_QUARTZ
+libgdk_3_la_CFLAGS = -xobjective-c
 libgdk_3_la_LIBADD += quartz/libgdk-quartz.la
 endif # USE_QUARTZ
 
@@ -370,7 +371,7 @@ dist-hook: ../build/win32/vs9/gdk.vcproj ../build/win32/vs10/gdk.vcxproj ../buil
        done >libgdk.sourcefiles
        $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gdk.vcprojin >$@
        rm libgdk.sourcefiles
-       
+
 ../build/win32/vs10/gdk.vcxproj: ../build/win32/vs10/gdk.vcxprojin
        for F in $(libgdk_3_la_SOURCES); do \
                case $$F in \
index 47b3760a4b8dc67ee71936708d7320b22516963a..698af66b10551f6edddb2e75c4d37ac32c38c3a4 100644 (file)
 #endif
 
 #ifdef GDK_WINDOWING_QUARTZ
-/* We immediately include gdkquartzdisplaymanager.h here instead of
- * gdkquartz.h so that we do not have to enable -xobjective-c for the
- * "generic" GDK source code.
+/* When the gdk_quartz_display_open function is removed We can
+ * immediately include gdkquartzdisplaymanager.h here instead of
+ * gdkprivate-quartz.h so that we won't have to enable -xobjective-c
+ * for the "generic" GDK source code.
+ * #include "quartz/gdkquartzdisplaymanager.h"
  */
-#include "quartz/gdkquartzdisplaymanager.h"
 #include "quartz/gdkprivate-quartz.h"
 #endif